const { sources } = require("webpack")

function loader(source) {
  const style = `
    let style = document.createElement('style');
    style.innerHtml = ${JSON.stringify(source)};
    document.head.appendChild(style)
  `

  return style
}

module.exports = loader